RailsHandband::Application.routes.draw do
  devise_for :users
  # root 'index'

  get  '/api' => 'api#index'
  post '/api/login' => 'api#login'
  post '/api/signup' => 'api#create'

  #Object upload
  post '/api/upload' => 'api#savefile'
  post '/api/putdata' => 'api#writedata'
  post '/api/getdata' => 'api#getdata'

  #Forget and Reset password
  post '/api/forget_password' => 'api#forget_password_step1'
  get  '/resetpassword' => 'resetpassword#index'

  #Direct private access of web app
  post '/api/private/usertoken' => 'api#private_user_verification'


end
